package com.ywk.base.designPattern.strategy;

/**
 * 策略执行器
 *
 * @Author zbh
 * @Date 2023/4/3
 */
public class StrategyManage {
    private Strategy action;

    public void setAction(Strategy action){
        this.action=action;
    }

    public void execute(){
        if (action!=null){
            action.action();
        }
    }

}
